import {defineStore} from "pinia";
import {ref} from 'vue'
import {reqHospitalDepartment} from "@/api/hospital";
export const useHospitalDepartment=defineStore('Department',()=>{
    // 医院科室数据
    let Department=ref<object>({})

    const get_hospital_department=async (hoscode:string)=>{
        let res=await reqHospitalDepartment(hoscode)
        Department.value=res.data

    }

    return{
        Department,
        get_hospital_department
    }

})
